package com.eshop.modules.user.service.dto;

import java.io.Serializable;
import javax.validation.constraints.Min;

public class UserMoneyDto implements Serializable {
    @Min(message = "最低金额为0", value = 0)
    private Double money;
    private Integer ptype;
    private Long uid;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserMoneyDto;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserMoneyDto)) {
            return false;
        }
        UserMoneyDto other = (UserMoneyDto) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Long this$uid = getUid();
        Long other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        Integer this$ptype = getPtype();
        Integer other$ptype = other.getPtype();
        if (this$ptype != null ? !this$ptype.equals(other$ptype) : other$ptype != null) {
            return false;
        }
        Double this$money = getMoney();
        Double other$money = other.getMoney();
        if (this$money == null) {
            if (other$money == null) {
                return true;
            }
        } else if (this$money.equals(other$money)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Long $uid = getUid();
        int hashCode = $uid == null ? 43 : $uid.hashCode();
        Integer $ptype = getPtype();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $ptype == null ? 43 : $ptype.hashCode();
        Double $money = getMoney();
        int i3 = (i2 + hashCode2) * 59;
        if ($money != null) {
            i = $money.hashCode();
        }
        return i3 + i;
    }

    public void setMoney(Double money2) {
        this.money = money2;
    }

    public void setPtype(Integer ptype2) {
        this.ptype = ptype2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public String toString() {
        return "UserMoneyDto(uid=" + getUid() + ", ptype=" + getPtype() + ", money=" + getMoney() + ")";
    }

    public Long getUid() {
        return this.uid;
    }

    public Integer getPtype() {
        return this.ptype;
    }

    public Double getMoney() {
        return this.money;
    }
}
